package rocky.freemanagementsystemserver.connectors;

import com.tuya.connector.api.annotations.Body;
import com.tuya.connector.api.annotations.POST;
import com.tuya.connector.api.annotations.Path;
import rocky.freemanagementsystemserver.bean.tuya.TuyaSendCommand

/**
 * 红外设备
 */
public interface InfraredsConnector {

    /**
     *
     * @param airConditionerId 遥控器-网关id
     * @param remoteId  远程空调设备id
     * @return
     */
    @POST("/v1.0/infrareds/{infrared_id}/air-conditioners/{remote_id}/command")
    fun ControlAirConditioners(
        @Path("infrared_id") airConditionerId: String,
        @Path("remote_id") remoteId: String,
        @Body command: TuyaSendCommand
    ): Boolean;
}
